package com.ipDev.moyvSys.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ipDev.moyvSys.domain.po.Choice;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ProblemVO {

    @ApiModelProperty(value = "返回给前端问题的id")
    private Integer problemId;

    @ApiModelProperty(value = "题目内容描述")
    private String description;

    @ApiModelProperty(value = "题目的分数")
    private Integer point;

    //用户端和职工端都会用到ProblemVO 但是可能用到选项 可能用不到选项
    //比如批量分页查看的场景下不需要返回对应选项
    //当用户生成题单的时候需要将选项信息一并返回
    @ApiModelProperty(value = "题目对应的选项")
    private List<Choice> choiceList;

    @ApiModelProperty(value = "题目的答案")
    private String answer;

    @ApiModelProperty(value = "题目归属于哪一章节")
    private Integer sectionId;

    @ApiModelProperty(value = "0选择题  1非选择题")
    private Integer type;

    @ApiModelProperty(value = "题目带有的图片")
    private String image;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
